using System;
using System.Collections.Generic;
using System.Text;

namespace PDSClient.Utils.Shared
{
    static class SimpleSgsProtocol
    {
        public const int MAX_MESSAGE_LENGTH = 65535;

        public const byte VERSION = 0x02;

        public const byte APPLICATION_SERVICE = 0x01;

        public const byte CHANNEL_SERVICE = 0x02;

        public const byte LOGIN_REQUEST = 0x10;

        public const byte LOGIN_SUCCESS = 0x11;

        public const byte LOGIN_FAILURE = 0x12;

        public const byte RECONNECT_REQUEST = 0x20;

        public const byte RECONNECT_SUCCESS = 0x21;

        public const byte RECONNECT_FAILURE = 0x22;

        public const byte SESSION_MESSAGE = 0x30;

        public const byte LOGOUT_REQUEST = 0x40;

        public const byte LOGOUT_SUCCESS = 0x41;

        public const byte CHANNEL_JOIN = 0x50;

        public const byte CHANNEL_LEAVE = 0x52;

        public const byte CHANNEL_SEND_REQUEST = 0x53;

        public const byte CHANNEL_MESSAGE = 0x54;
    }
}
